#ifndef ALWAYSCOMPWIDGET_H
#define ALWAYSCOMPWIDGET_H

#include <QWidget>
#include <QtGui>
#include "aed_alwayscomp.h"
#include "alwayscondmodel.h"
class AlwaysCompWidget : public QWidget
{
    Q_OBJECT

    AED_AlwaysComp *m_comp;
    AlwaysCondModel *m_model;
    QTableView *m_condtable;

    QGroupBox* group;
    QPushButton *add_cond_button;
    QPushButton *remove_cond_button;
public:
    explicit AlwaysCompWidget(AED_AlwaysComp *comp, QWidget *parent = 0);
    void setComp(AED_AlwaysComp *comp);
signals:

public slots:
    void ResizeColumns();
    void SetEnabled(bool enabled);
    void RemoveCondition();
};

#endif // ALWAYSCOMPWIDGET_H
